var db = require("../modules/db.js");
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var UsersSchema = new Schema({
  id: {type: String, index: true},
  password: String,
  name: String,
  floor:Number,
  isAdministrator: Boolean
});

mongoose.model("User", UsersSchema);
var User = mongoose.model("User");

module.exports = User;
